<template>
  <div name="Application">
    <div class="s-app-list" v-if="appList && appList.length > 0">
      <div class="appitem" v-for="d in appList" :key="d.id">
        <dsfimg :src="d.applogo" :error-src="config.setting_img" />
        <div class="app-content">
          <p class="topText">{{ d.name }}</p>
          <p class="bottomText">{{ d.source }}</p>
          <p class="bottomText">发布时间:{{ d.releasetime }}</p>
        </div>
      </div>
    </div>
    <el-empty v-else></el-empty>
  </div>
</template>
<script>
export default {
  name: "Department",
  components: {},
  data() {
    return {
      itemimg: require("@/assets/imgs/pc/sindex/app.png"),
      appList: [],
    };
  },
	mounted(){
		this.getData();
	},
  methods: {
    getData() {
      this.$http
        .get("/iaiqsmde9fea569965ed56ab98ea0501752fe631902841e/indexAppList")
        .then(res => {
          if (res.code == 0) {
            this.appList = res.data.appRecommend;
          }
        })
        .catch(err => {
          console.log(err.message || "数据异常");
        });
    },
  },
};
</script>
